pickShapesInRect

fun pickShapesInRect(x: Float, y: Float, width: Float, height: Float): PickedObjectList

Determines the WorldWind shapes displayed in a screen rectangle. The screen rectangle is interpreted as coordinates in Android screen pixels relative to this view.
If the screen rectangle intersects any number of WorldWind shapes, the returned list contains a picked object identifying the all the top shapes in the rectangle. This picked object includes the shape renderable (or its non-null pick delegate) and the WorldWind layer that displayed the shape. Shapes which are entirely hidden behind another shape in the screen rectangle or are entirely hidden behind terrain in the screen rectangle are omitted from the returned list.
This returns an empty list when no shapes in the WorldWind scene intersect the screen rectangle, when the screen rectangle is outside this View's bounds, or if the OpenGL thread displaying the WorldWindow's scene is paused (or becomes paused while this method is executing).

Return

a list of WorldWind shapes in the screen rectangle

Parameters

x

the screen rectangle's X coordinate in Android screen pixels

y

the screen rectangle's Y coordinate in Android screen pixels

width

the screen rectangle's width in Android screen pixels

height

the screen rectangle's height in Android screen pixels